package com.bing.my.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 账单数据
 * </p>
 *
 * @author bing
 * @since 2021-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Bill implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 账单id
     */
    private String billId;

    /**
     * 会员id
     */
    private String memberId;


    /**
     * 应收款
     */
    private BigDecimal sumMoney;

    /**
     * 实收款
     */
    private BigDecimal realMoney;

    /**
     * 创建时间
     */
      @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 更新时间
     */
      @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    /**
     * 乐观锁，默认值1
     */
    @Version
    private Integer version;

    /**
     * 逻辑删除，默认0，1为删除
     */
    @TableLogic
    private Integer deleted;

    /**
     * 会员名称
     */
    @TableField(exist = false)
    private String memberName;


}
